ber_synd = [0.1281    0.1209    0.0879    0.0675    0.0563    0.0386    0.0277   0.0183    0.0119    0.0067];

%media_tempo = 2.7750e-004s


ber_mld = [0.1173    0.1085    0.0897    0.0675    0.0563    0.0374    0.0281  0.0170    0.0114    0.0070];

%media_tempo = 0.0983s

ber_info_set = [0.1299    0.1043    0.0845    0.0688    0.0537    0.0405    0.0263  0.0176    0.0109    0.0061];

%media_tempo = 0.0013s

ebno_all = 0.5:0.5:5;
figure(1);
semilogy(ebno_all,ber_info_set,'m.-');
xlabel('Eb/N0');
ylabel('BER');
title('Information Set Decoder for C(15,7) block code');

figure(2);
semilogy(ebno_all,ber_mld,'c*-');
xlabel('Eb/N0');
ylabel('BER');
title('MLD Decoder for C(15,7) block code');

figure(3);
semilogy(ebno_all,ber_synd,'go-');
xlabel('Eb/N0');
ylabel('BER');
title('Syndrome Decoder for C(15,7) block code');